<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>D3交互式数据可视化</title>
</head>
<body>
	<ul>
		<li>随机排列数组（洗牌）：d3.shuffle(array[,lo[,hi]])</li>
		<li>合并两个数组：d3.merge(arrays) ---<strong>d3.merge([[1,2,3],[8,6,3]])</strong></li>
		<li>返回邻接的数组对：d3.pairs(array) -- <strong>原数组不变</strong></li>
		<li>返回等差数列：d3.range([start,]stop[,step]) --stop为正，则最后的值小于stop，如果stop为负，则最后的值大于stop，start和step如果省略，则默认值分别为0和1</li>
		<li>根据指定的索引号数组返回排列后的<strong>新数组</strong>超出范围的索引号以undefind代替：d3.permute(array,indexes)</li>
		<li>用多个数组来制作数组的数组,参数是任意多个数组，输出是数组的数组：d3.zip(arrays)</li>
		<li>求转置矩阵:d3.transpose(matrix):将矩阵的行换成相应的列，得到的矩阵即转置矩阵</li>
	</ul>
	<script src="js/d3_3.5.7.js"></script>
	<script>
		var nums = [13,16,19,20,25,26,28,71,42,15];
		console.log(d3.shuffle(nums));
		console.log(d3.merge([[1,2,3],[8,6,3]]));
		console.log(d3.pairs(nums));
		console.log(d3.range(1,-20,-1));
		var num2 = [1,2,3];
		console.log(d3.permute(num2,[2,1,0,5,4]))
		console.log(d3.zip([1,2,3],["a","b","c","d"],["EE","FF","GG","HH","II","KK"]))
		var a = [[1,2,3],[4,5,6]];
		console.log(d3.transpose(a))
	</script>
</body>
</html>